package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

//水雷潜艇
public class MineSubmarine extends SeaObject implements EnemyAward{

    public MineSubmarine(){
        super(63,19);
    }
    @Override
    public void step(){
        x += speed;
    }

    @Override
    public ImageIcon getImage(){
        return Images.minesubm;  //返回水雷战舰的图片
    }

    /** 重写getLife()得命*/
    public int getLife(){
        return 1; //消失一个水雷得1条命
    }

}
